package com.carl.zlds.service;

import com.carl.zlds.tool.common.PageBO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.carl.zlds.model.Ad;
import com.carl.zlds.model.Article;
import com.carl.zlds.pojo.dto.AdSearchDTO;
import com.carl.zlds.pojo.dto.ArticleSearchDTO;
import com.carl.zlds.pojo.dto.SaveAdDTO;
import com.carl.zlds.pojo.dto.SaveArticleDTO;
import com.carl.zlds.pojo.vo.AdVO;
import com.carl.zlds.pojo.vo.ArticleVO;

import java.util.List;
import java.util.Map;

/**
 * @author carl
 */
public interface IAdService extends IService<Ad> {

    void saveAd(Long id, SaveAdDTO dto);

    void deleteAd(Long id);

    Map<String, Object> getAdList(AdSearchDTO dto, PageBO pageBO);

    List<AdVO> getAdListByWeb(AdSearchDTO dto);

    AdVO getAdInfo(Long id);
}
